﻿@model MvcHeatloss.Models.Room

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Room</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.CustomerID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CustomerID)
            @Html.ValidationMessageFor(model => model.CustomerID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Width)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Width)
            @Html.ValidationMessageFor(model => model.Width)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Height)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Height)
            @Html.ValidationMessageFor(model => model.Height)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AirMovements)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AirMovements)
            @Html.ValidationMessageFor(model => model.AirMovements)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RequiredBTU)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RequiredBTU)
            @Html.ValidationMessageFor(model => model.RequiredBTU)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Length)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Length)
            @Html.ValidationMessageFor(model => model.Length)
        </div>

        @Html.HiddenFor(model => model.RoomID)

        <div class="editor-label">
            @Html.LabelFor(model => model.MyUValues)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MyUValues)
            @Html.ValidationMessageFor(model => model.MyUValues)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TemperatureDifference)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TemperatureDifference)
            @Html.ValidationMessageFor(model => model.TemperatureDifference)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RoomUValue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RoomUValue)
            @Html.ValidationMessageFor(model => model.RoomUValue)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoOfWalls)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NoOfWalls)
            @Html.ValidationMessageFor(model => model.NoOfWalls)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoOfDoors)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NoOfDoors)
            @Html.ValidationMessageFor(model => model.NoOfDoors)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoOfWindows)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NoOfWindows)
            @Html.ValidationMessageFor(model => model.NoOfWindows)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoOfSkylights)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NoOfSkylights)
            @Html.ValidationMessageFor(model => model.NoOfSkylights)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
